<!DOCTYPE html>
<html>
<%- include('components/head.ejs'); %>
<body>
<%- include('components/header.ejs'); %>
<div class="container">
    <ol class="breadcrumb">
        <li><a href="#" style="color: #000">首页</a></li>
        <li class="active"><a href="/list?catagory=<%= product.catagory%>" style="color: #000"><%= product.catagory%></a></li>
        <li class="active"><%= product.name%></li>
    </ol>
    <img src="<%= product.headImg%>" alt="" style="width:100%;height: 300px;">
    <div class="row" style="margin-top: 50px;">
        <div class="col-xs-6">
            <h3>【羅怡和 - <%= product.name%>】 <span style="font-size: .8em;font-weight: normal;">Luoyihe <%= product.pinyin%></span></h3>
            <div id="introduction" style="font-size: 1.2em;text-indent: 2em;margin-top: 20px;line-height: 1.8em;">
                <%- product.introduct%>
            </div>
            <div class="row">
                <div class="btn-group col-xs-6" style="padding-right: 0;">
                    <a href="<%= product.aliLink%>" target="view_window" style="padding-left: 30%;padding-right: 30%;" type="button" class="btn btn-warning btn-lg">阿里店购买</a>
                </div>
                <div class="btn-group col-xs-6" style="padding-left: 0;padding-right: 0;">
                    <a href="/ali" type="button" style="padding-left: 30%;padding-right: 30%;" class="btn btn-info btn-lg">加入收藏船</a>
                </div>
            </div>
        </div>
        <div class="col-xs-6" style="text-align: right">
            <img src="<%= product.shoulderImg%>" alt="" width="500px" height="500px">
            <h4><span style="font-size:2.4em;color:#ff0036">128</span>元/盒</h4>
        </div>
    </div>
    <div class="share-product" style="height:100px">
        <div class="social-share col-xs-7" style="float: left;margin: 17px 0;" data-weibo-title="这个标题只有的分享到微博时有用，其它标题为全局标题" data-qq-title="分享到QQ时用此标题">
            分享
        </div>
    </div>
    <div style="text-align: center;margin: 60px 0 30px; ">
        <img src="/images/more-taste-title.png" alt="多种口味，更多选择">
    </div>
    <div class="product-item-3 row" style="margin-bottom: 80px;">
        <% for(var i = 0; i < product.moreTaste.length; i++) {%>
            <a class="link-black col-xs-4" href='/detail?id="<%= product.moreTaste[i].id %>"'>
                <img src="" alt="">
                <p>
                    <span style="font-size: 1.2em">羅怡和 <small>之</small><%= product.moreTaste[i].name %></span>
                    <span style="font-size: 1.4em;float:right;color: #ff2604">128<span style="font-size: 14px;color:#000;">元/盒</span></span>
                </p>
            </a>
        <% } %>
    </div>
    <div class="row">
        <div class="product-detail col-xs-9">
            <img src="/data/images/chaomibing/parameter.png" width="100%" alt="">
            <div style="height: 1px;background-color: #987349;margin-top: 30px;"></div>
            <img src="/data/images/chaomibing/img-1.jpg" width="100%" style="margin-bottom: 60px;" alt="">
            <img src="/data/images/chaomibing/img-2.jpg" width="100%" alt="">
            <img src="/data/images/chaomibing/img-3.jpg" width="100%" alt="">
            <img src="/data/images/chaomibing/img-4.jpg" width="100%" alt="">
            <img src="/data/images/chaomibing/img-5.jpg" width="100%" alt="">
            <img src="/data/images/chaomibing/img-culture.jpg" style="margin-top: 60px;" width="100%" alt="">
        </div>
        <div class="col-xs-3" style="margin-top: 52px;">
            <div style="padding-left:10px;color: #fff;height:42px;line-height: 42px;background-color: #987349;">
                更多美食
                <a class="arrow"
                   href="javascript:"
                      style="display: inline-block;float: right;position: relative;width: 42px;height: 42px;background-color: #5c3c27;">
                    <i style="position: absolute;left: 18px;top: 12px;width: 0;height: 0;border-width: 9px;border-style: solid;border-left-color: #fff;border-top-color: transparent;border-right-color: transparent;border-bottom-color:transparent;"></i>
                </a>
            </div>
            <ul class="food-list">
                <li>
                    <a href="/detail?id=2">
                        <div class="thumb-img">
                            <img src="/data/images/chaomibing/thumb-img.jpg" width='82px' height="70px" alt="">
                        </div>
                        <div style="float: left;margin-left: 8px;">
                            <h6 style="font-size:1.4em;color: #646464;">
                                板栗烤米饼
                                <span style="font-size:1.4em;color: #df4627;">热</span>
                            </h6>
                            <span style="font-size:1.2em;color: #969696;">5.2cm;皮薄馅多</span>
                        </div>
                        <div class="clear"></div>
                    </a>
                </li>
                <li>
                    <a href="/detail?id=2">
                        <div class="thumb-img">
                            <img src="/data/images/chaomibing/thumb-img.jpg" width='82px' height="70px" alt="">
                        </div>
                        <div style="float: left;margin-left: 8px;">
                            <h6 style="font-size:1.4em;color: #646464;">
                                板栗烤米饼
                                <span style="font-size:1.4em;color: #df4627;">新</span>
                            </h6>
                            <span style="font-size:1.2em;color: #969696;">5.2cm;皮薄馅多</span>
                        </div>
                        <div class="clear"></div>
                    </a>
                </li>
                <li>
                    <a href="/detail?id=2">
                        <div class="thumb-img">
                            <img src="/data/images/chaomibing/thumb-img.jpg" width='82px' height="70px" alt="">
                        </div>
                        <div style="float: left;margin-left: 8px;">
                            <h6 style="font-size:1.4em;color: #646464;">
                                板栗烤米饼
                                <span style="font-size:1.4em;color: #df4627;">新</span>
                            </h6>
                            <span style="font-size:1.2em;color: #969696;">5.2cm;皮薄馅多</span>
                        </div>
                        <div class="clear"></div>
                    </a>
                </li>
                <li>
                    <a href="/detail?id=2">
                        <div class="thumb-img">
                            <img src="/data/images/chaomibing/thumb-img.jpg" width='82px' height="70px" alt="">
                        </div>
                        <div style="float: left;margin-left: 8px;">
                            <h6 style="font-size:1.4em;color: #646464;padding-top:5px;">
                                板栗烤米饼
                                <span style="font-size:1.4em;color: #df4627;">新</span>
                            </h6>
                            <span style="font-size:1.2em;color: #969696;">5.2cm;皮薄馅多</span>
                        </div>
                        <div class="clear"></div>
                    </a>
                </li>
            </ul>
        </div>
    </div>
</div>
<%- include('components/footer.ejs'); %>
<script src="/plugins/jquery-1.12.4.min.js"></script>
<script src="/plugins/bootstrap-3.3.7.min.js"></script>
<script src="/plugins/share.min.js"></script>
<script>
    (function(){
        $(window).scroll(function () {
            if ($(this).scrollTop() > 50) {
                $('#back-to-top').fadeIn();
            } else {
                $('#back-to-top').fadeOut();
            }
        });

        // scroll body to 0px on click
        $('#back-to-top').click(function () {
            $('#back-to-top').tooltip('hide');
            $('body,html').animate({
                scrollTop: 0
            }, 800);
            return false;
        });
        $('#back-to-top').tooltip('show');

        $('#share-btn').click(function(){
            var $panel = $('.share-panel');
            $panel.css("left") == '0px' ? $panel.animate({left: -440+'px'}, 300): $panel.animate({left: 0}, 300)
        })
    })()
</script>
</body>
</html>